package main

import (
	"fmt"
	"time"

	"gitee.com/dark.H/go-utils/s"
)

func main() {
	s.Str("test strike-throuht").ANSIStrike().Println()
	time.Sleep(1 * time.Second)
	s.Str("").ANSISave().ANSICursor(0, 0).Print()
	time.Sleep(2 * time.Second)
	s.Str("").ANSIRestore().Print()
	time.Sleep(2 * time.Second)
	raw := s.Str("@control.go").ParseFileContent()
	ls := raw.Split("\n")
	ls.Each(func(i int, item s.Str) {
		p := i * 100 / ls.Len()
		fmt.Println("line : ", item)
		time.Sleep(1 * time.Second)
		s.ProgressShow(p, "show line:"+fmt.Sprint(i))

	})
}
